package com.vsen.lpr.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;

import java.io.Serializable;

/**
 * 测量记录
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_measure_record")
public class MeasureRecord extends BaseEntity<MeasureRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private String userId;

    @TableField("high_bp")
    private Double highBp;

    @TableField("low_bp")
    private Double lowBp;

    @TableField("hp")
    private Double hp;

    @TableField("weight")
    private Double weight;

    @TableField("create_time")
    private String createTime;

    protected Serializable pkVal() {
        return this.id;
    }

}
